package com.pigcloud.sop.gateway.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.FieldNameConstants;

import java.time.LocalDateTime;

/**
 * <p>
 * 服务灰度配置
 * </p>
 *
 * @author wangfm
 * @since 2024-01-03
 */
@Data
@FieldNameConstants
@TableName("config_gray")
@ApiModel("ConfigGray")
public class ConfigGray  {
    @TableId("id")
    private Long id;
    @TableField("service_id")
    private String serviceId;

    @ApiModelProperty("用户key，多个用引文逗号隔开")
    @TableField("user_key_content")
    private String userKeyContent;

    @ApiModelProperty("需要灰度的接口，goods.get1.0=1.2，多个用英文逗号隔开")
    @TableField("name_version_content")
    private String nameVersionContent;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;


}
